LOCAL_PATH := $(call my-dir)
TOP_LOCAL_PATH := $(LOCAL_PATH)

MY_ROOT := .

include $(TOP_LOCAL_PATH)/Core.mk
include $(TOP_LOCAL_PATH)/ThirdParty.mk

include $(CLEAR_VARS)

LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/../draw \
	$(LOCAL_PATH)/../fitz \
	$(LOCAL_PATH)/../pdf \
	$(LOCAL_PATH)/../xps \
	$(LOCAL_PATH)/../cbz \
	$(LOCAL_PATH)/../thirdparty/freetype-2.4.10 \
	$(LOCAL_PATH)/../thirdparty/jbig2dec \
	$(LOCAL_PATH)/../thirdparty/jpeg-9 \
	$(LOCAL_PATH)/../thirdparty/openjpeg-1.5.0-patched \
	$(LOCAL_PATH)/../thirdparty/zlib-1.2.7 \
	$(LOCAL_PATH)/..

LOCAL_ARM_MODE := arm
LOCAL_MODULE    := YKComicsPDFPlugin
LOCAL_SRC_FILES := yk_YKComics_Test_Plugin_PDFHandler.c
LOCAL_STATIC_LIBRARIES := mupdfcore mupdfthirdparty

LOCAL_LDLIBS    := -lm -llog -ljnigraphics

LOCAL_CFLAGS := -mlong-calls
LOCAL_C_FLAGS += -fuse-ld=gold
LOCAL_CPP_FLAGS += -fuse-ld=gold

include $(BUILD_SHARED_LIBRARY)
